new Vue({
    el:'#app',
    data:{
        Case_law:{
            caseId:'',
            caseStatus:'',
            submitId:{
                userId:''
            }
        },
        tableData:[]
    },
    created(){
      this.init();  
    },
    methods:{
        init(){
            this.Case_law.submitId.userId = $.cookie("redisId");
            var data = JSON.stringify(this.Case_law);
            this.$http.post("http://localhost:8080/remission/queryremissionAll",
                {"data":data},{emulateJSON:true}).then(result=>{
                var msg = eval("("+result.body+")")
                this.tableData = msg.data;
            })
        },
        handleClick(obj) {
            //跳转到详情显示页面
            window.location.href="../audit/MyApply_queryOne.html?processid="+obj.auditid.auditid;
        },
        handleCurrentChange(val) {
            console.log(`当前页: ${val}`);
        },
        LikeQuery(){ //模糊查询
            this.Case_law.submitId.userId = $.cookie("redisId");
            var data = JSON.stringify(this.Case_law);

            this.$http.post("http://localhost:8080/remission/queryremissionAll",
                {"data":data},{emulateJSON:true}).then(result=>{
                var msg = eval("("+result.body+")")
                this.tableData = msg.data;
            })
            
        }
    }
})